﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Reflection;
using System.IO;

namespace RVBike
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        private void OnStartup(object sender, StartupEventArgs e)
        {
            // Initialize singlton components
            string rootDir = PathUtility.Normalize(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            // Always initialize PathUtility first because it has all path
            // relative informations.
            new PathUtility(rootDir);
            new Logger();
            new SaveManager();
            new UserSetting();
            new MultiLanguage();
            new CharacterManager();
            new StageManager();
            new DisplayEnv();
            new RVGameController();
            new WebcamController();
        }
    }
}
